package com.team6.cet.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.team6.cet.entity.ExamineeInformation;
import com.team6.cet.mapper.ExamineeInformationMapper;
import com.team6.cet.service.ExamineeInformationService;

@Service  
public class ExamineeInformationServiceImpl implements ExamineeInformationService {
	@Autowired  
	ExamineeInformationMapper eMapper;

	@Override
	public List<ExamineeInformation> findAll() {
		// TODO Auto-generated method stub
		return eMapper.findAll();
	}

	@Override
	public ExamineeInformation getExamineeinformationbyId(int id) {
		// TODO Auto-generated method stub
		return eMapper.getExamineeinformationbyId(id);

	}

	@Override
	public int delExamineeinfo(int id) {
		// TODO Auto-generated method stub
		return eMapper.delExamineeinfo(id);
	}

	@Override
	public int insertExamineeinfo(ExamineeInformation examineeinformation) {
		// TODO Auto-generated method stub
		return eMapper.insertExamineeinfo(examineeinformation);
	}

	@Override
	public int updateExamineeinfo(ExamineeInformation examineeinformation) {
		// TODO Auto-generated method stub
		return eMapper.updateExamineeinfo(examineeinformation);
	}

	@Override
	public List<ExamineeInformation> getExamineeinformationbyidnum(String idnum) {
	
		return eMapper.getExamineeinformationbyidnum(idnum);
	}

}
